package com.scau.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity(name="emp_product")
public class EmpProduct {
	private long id;
	private String userid;
	private String productCode;
	private Date createDate;
	private int num;
	private double earning;
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public double getEarning() {
		return earning;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}
	public int getNum() {
		return num;
	}
	
	@Column(name="product_code")
	public String getProductCode() {
		return productCode;
	}
	

	public String getUserid() {
		return userid;
	}
	

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public void setEarning(double earning) {
		this.earning = earning;
	}
	public void setId(long id) {
		this.id = id;
	}
	public void setNum(int num) {
		this.num = num;
	}
	
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	public void setUserid(String userid) {
		this.userid = userid;
	}
	

}
